package by.dvrudenko.avtobaza.dataaccess;

import java.util.List;

import javax.persistence.metamodel.SingularAttribute;

import by.dvrudenko.avtobaza.datamodel.UserOrder;
import by.dvrudenko.avtobaza.datamodel.enums.OrderStatus;

public interface UserOrderDao extends AbstractDao<Long, UserOrder>{
	
    Long getCount(Long UserId);

    List<UserOrder> getAllUserOrders();

    List<UserOrder> getAllUserOrders(SingularAttribute<UserOrder, ?> attr, boolean ascending, 
    		int startRecord, int pageSize, Long UserId);

//    List<UserOrder> getAllUserOrdersByUser(String name);
    
	UserOrder getRandomOrder();
    
	List<UserOrder> getAllActiveOrderByStatus(OrderStatus orderStatus);


}
